package a17_state;

/**
 * 将行为和状态绑定起来，状态决定能发生什么行为，行为反过来可以修改状态。
 * 
 * @author Shao Yuxia
 *
 */
public class Client {

	public static void main(String[] args) {
		LiftState state = new LIftOpenState();
		state.close();
		state.run();
		state.stop();
		state.open();
		state.close();
		state.run();
		state.open();
		state.stop();

	}

}
